package com.deer.wms.base.system.model.plan;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class SchedulePlanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SchedulePlanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPlannameIsNull() {
            addCriterion("planName is null");
            return (Criteria) this;
        }

        public Criteria andPlannameIsNotNull() {
            addCriterion("planName is not null");
            return (Criteria) this;
        }

        public Criteria andPlannameEqualTo(String value) {
            addCriterion("planName =", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameNotEqualTo(String value) {
            addCriterion("planName <>", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameGreaterThan(String value) {
            addCriterion("planName >", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameGreaterThanOrEqualTo(String value) {
            addCriterion("planName >=", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameLessThan(String value) {
            addCriterion("planName <", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameLessThanOrEqualTo(String value) {
            addCriterion("planName <=", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameLike(String value) {
            addCriterion("planName like", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameNotLike(String value) {
            addCriterion("planName not like", value, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameIn(List<String> values) {
            addCriterion("planName in", values, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameNotIn(List<String> values) {
            addCriterion("planName not in", values, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameBetween(String value1, String value2) {
            addCriterion("planName between", value1, value2, "planname");
            return (Criteria) this;
        }

        public Criteria andPlannameNotBetween(String value1, String value2) {
            addCriterion("planName not between", value1, value2, "planname");
            return (Criteria) this;
        }

        public Criteria andColorIsNull() {
            addCriterion("color is null");
            return (Criteria) this;
        }

        public Criteria andColorIsNotNull() {
            addCriterion("color is not null");
            return (Criteria) this;
        }

        public Criteria andColorEqualTo(String value) {
            addCriterion("color =", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotEqualTo(String value) {
            addCriterion("color <>", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThan(String value) {
            addCriterion("color >", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThanOrEqualTo(String value) {
            addCriterion("color >=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThan(String value) {
            addCriterion("color <", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThanOrEqualTo(String value) {
            addCriterion("color <=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLike(String value) {
            addCriterion("color like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotLike(String value) {
            addCriterion("color not like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorIn(List<String> values) {
            addCriterion("color in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotIn(List<String> values) {
            addCriterion("color not in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorBetween(String value1, String value2) {
            addCriterion("color between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotBetween(String value1, String value2) {
            addCriterion("color not between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andDefinetypeIsNull() {
            addCriterion("defineType is null");
            return (Criteria) this;
        }

        public Criteria andDefinetypeIsNotNull() {
            addCriterion("defineType is not null");
            return (Criteria) this;
        }

        public Criteria andDefinetypeEqualTo(Integer value) {
            addCriterion("defineType =", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeNotEqualTo(Integer value) {
            addCriterion("defineType <>", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeGreaterThan(Integer value) {
            addCriterion("defineType >", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("defineType >=", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeLessThan(Integer value) {
            addCriterion("defineType <", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeLessThanOrEqualTo(Integer value) {
            addCriterion("defineType <=", value, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeIn(List<Integer> values) {
            addCriterion("defineType in", values, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeNotIn(List<Integer> values) {
            addCriterion("defineType not in", values, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeBetween(Integer value1, Integer value2) {
            addCriterion("defineType between", value1, value2, "definetype");
            return (Criteria) this;
        }

        public Criteria andDefinetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("defineType not between", value1, value2, "definetype");
            return (Criteria) this;
        }

        public Criteria andPlantypeIsNull() {
            addCriterion("planType is null");
            return (Criteria) this;
        }

        public Criteria andPlantypeIsNotNull() {
            addCriterion("planType is not null");
            return (Criteria) this;
        }

        public Criteria andPlantypeEqualTo(Integer value) {
            addCriterion("planType =", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeNotEqualTo(Integer value) {
            addCriterion("planType <>", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeGreaterThan(Integer value) {
            addCriterion("planType >", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("planType >=", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeLessThan(Integer value) {
            addCriterion("planType <", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeLessThanOrEqualTo(Integer value) {
            addCriterion("planType <=", value, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeIn(List<Integer> values) {
            addCriterion("planType in", values, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeNotIn(List<Integer> values) {
            addCriterion("planType not in", values, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeBetween(Integer value1, Integer value2) {
            addCriterion("planType between", value1, value2, "plantype");
            return (Criteria) this;
        }

        public Criteria andPlantypeNotBetween(Integer value1, Integer value2) {
            addCriterion("planType not between", value1, value2, "plantype");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIsNull() {
            addCriterion("totalTime is null");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIsNotNull() {
            addCriterion("totalTime is not null");
            return (Criteria) this;
        }

        public Criteria andTotaltimeEqualTo(BigDecimal value) {
            addCriterion("totalTime =", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotEqualTo(BigDecimal value) {
            addCriterion("totalTime <>", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeGreaterThan(BigDecimal value) {
            addCriterion("totalTime >", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("totalTime >=", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeLessThan(BigDecimal value) {
            addCriterion("totalTime <", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("totalTime <=", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIn(List<BigDecimal> values) {
            addCriterion("totalTime in", values, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotIn(List<BigDecimal> values) {
            addCriterion("totalTime not in", values, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("totalTime between", value1, value2, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("totalTime not between", value1, value2, "totaltime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeIsNull() {
            addCriterion("periodTime is null");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeIsNotNull() {
            addCriterion("periodTime is not null");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeEqualTo(String value) {
            addCriterion("periodTime =", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeNotEqualTo(String value) {
            addCriterion("periodTime <>", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeGreaterThan(String value) {
            addCriterion("periodTime >", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeGreaterThanOrEqualTo(String value) {
            addCriterion("periodTime >=", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeLessThan(String value) {
            addCriterion("periodTime <", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeLessThanOrEqualTo(String value) {
            addCriterion("periodTime <=", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeLike(String value) {
            addCriterion("periodTime like", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeNotLike(String value) {
            addCriterion("periodTime not like", value, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeIn(List<String> values) {
            addCriterion("periodTime in", values, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeNotIn(List<String> values) {
            addCriterion("periodTime not in", values, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeBetween(String value1, String value2) {
            addCriterion("periodTime between", value1, value2, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPeriodtimeNotBetween(String value1, String value2) {
            addCriterion("periodTime not between", value1, value2, "periodtime");
            return (Criteria) this;
        }

        public Criteria andPostIsNull() {
            addCriterion("post is null");
            return (Criteria) this;
        }

        public Criteria andPostIsNotNull() {
            addCriterion("post is not null");
            return (Criteria) this;
        }

        public Criteria andPostEqualTo(Integer value) {
            addCriterion("post =", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostNotEqualTo(Integer value) {
            addCriterion("post <>", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostGreaterThan(Integer value) {
            addCriterion("post >", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostGreaterThanOrEqualTo(Integer value) {
            addCriterion("post >=", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostLessThan(Integer value) {
            addCriterion("post <", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostLessThanOrEqualTo(Integer value) {
            addCriterion("post <=", value, "post");
            return (Criteria) this;
        }

        public Criteria andPostIn(List<Integer> values) {
            addCriterion("post in", values, "post");
            return (Criteria) this;
        }

        public Criteria andPostNotIn(List<Integer> values) {
            addCriterion("post not in", values, "post");
            return (Criteria) this;
        }

        public Criteria andPostBetween(Integer value1, Integer value2) {
            addCriterion("post between", value1, value2, "post");
            return (Criteria) this;
        }

        public Criteria andPostNotBetween(Integer value1, Integer value2) {
            addCriterion("post not between", value1, value2, "post");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}